package cn.yangliu.springbatch.entity;

import lombok.EqualsAndHashCode;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * the type of springbatch
 *
 * <p>
 * .
 *
 * @author 杨柳
 * @date 2021-07-13
 */
@Entity
@EqualsAndHashCode
@Table(name = "batch_job_execution_params")
public class BatchJobExecutionParams {

    private Long jobExecutionId;
    private String typeCd;
    private String keyName;
    private String stringVal;
    private Timestamp dateVal;
    private Long longVal;
    private Double doubleVal;
    private String identifying;

    /**
     * instance member witch named jobExecutionId‘s getter
     * <p>
     * for get field witch named jobExecutionId’s value
     *
     * @return jobExecutionId
     */
    @Id
    @Column(name = "JOB_EXECUTION_ID", nullable = false)
    public Long getJobExecutionId() {
        return jobExecutionId;
    }

    /**
     * instance member witch named jobExecutionId's setter
     * for set field witch named jobExecutionId's value
     *
     * @param jobExecutionId jobExecutionId
     */
    public void setJobExecutionId(Long jobExecutionId) {
        this.jobExecutionId = jobExecutionId;

    }

    /**
     * instance member witch named typeCd‘s getter
     * <p>
     * for get field witch named typeCd’s value
     *
     * @return typeCd
     */
    @Basic
    @Column(name = "TYPE_CD", nullable = false, length = 6)
    public String getTypeCd() {
        return typeCd;
    }

    /**
     * instance member witch named typeCd's setter
     * for set field witch named typeCd's value
     *
     * @param typeCd typeCd
     */
    public void setTypeCd(String typeCd) {
        this.typeCd = typeCd;

    }

    /**
     * instance member witch named keyName‘s getter
     * <p>
     * for get field witch named keyName’s value
     *
     * @return keyName
     */
    @Basic
    @Column(name = "KEY_NAME", nullable = false, length = 100)
    public String getKeyName() {
        return keyName;
    }

    /**
     * instance member witch named keyName's setter
     * for set field witch named keyName's value
     *
     * @param keyName keyName
     */
    public void setKeyName(String keyName) {
        this.keyName = keyName;

    }

    /**
     * instance member witch named stringVal‘s getter
     * <p>
     * for get field witch named stringVal’s value
     *
     * @return stringVal
     */
    @Basic
    @Column(name = "STRING_VAL", length = 250)
    public String getStringVal() {
        return stringVal;
    }

    /**
     * instance member witch named stringVal's setter
     * for set field witch named stringVal's value
     *
     * @param stringVal stringVal
     */
    public void setStringVal(String stringVal) {
        this.stringVal = stringVal;

    }

    /**
     * instance member witch named dateVal‘s getter
     * <p>
     * for get field witch named dateVal’s value
     *
     * @return dateVal
     */
    @Basic
    @Column(name = "DATE_VAL")
    public Timestamp getDateVal() {
        return dateVal;
    }

    /**
     * instance member witch named dateVal's setter
     * for set field witch named dateVal's value
     *
     * @param dateVal dateVal
     */
    public void setDateVal(Timestamp dateVal) {
        this.dateVal = dateVal;

    }

    /**
     * instance member witch named longVal‘s getter
     * <p>
     * for get field witch named longVal’s value
     *
     * @return longVal
     */
    @Basic
    @Column(name = "LONG_VAL")
    public Long getLongVal() {
        return longVal;
    }

    /**
     * instance member witch named longVal's setter
     * for set field witch named longVal's value
     *
     * @param longVal longVal
     */
    public void setLongVal(Long longVal) {
        this.longVal = longVal;

    }

    /**
     * instance member witch named doubleVal‘s getter
     * <p>
     * for get field witch named doubleVal’s value
     *
     * @return doubleVal
     */
    @Basic
    @Column(name = "DOUBLE_VAL")
    public Double getDoubleVal() {
        return doubleVal;
    }

    /**
     * instance member witch named doubleVal's setter
     * for set field witch named doubleVal's value
     *
     * @param doubleVal doubleVal
     */
    public void setDoubleVal(Double doubleVal) {
        this.doubleVal = doubleVal;

    }

    /**
     * instance member witch named identifying‘s getter
     * <p>
     * for get field witch named identifying’s value
     *
     * @return identifying
     */
    @Basic
    @Column(name = "IDENTIFYING", nullable = false, length = 1)
    public String getIdentifying() {
        return identifying;
    }

    /**
     * instance member witch named identifying's setter
     * for set field witch named identifying's value
     *
     * @param identifying identifying
     */
    public void setIdentifying(String identifying) {
        this.identifying = identifying;

    }

}
